//
//  UICollectionView+GJKit.h
//  YDGJ
//
//  Created by 1dcq on 16/6/22.
//  Copyright © 2016年 Galaxy360. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef enum : NSUInteger {
    GJCollectionViewTipsTypeEmptyData = 1,     //空数据
    GJCollectionViewTipsTypeLoadError          //加载错误
}GJCollectionViewTipsType;

typedef void(^tipsTouchBlock)();

@interface UICollectionView (GJKit)

/** 工厂方法创建*/
+(instancetype)collectionViewWithFrame:(CGRect )rect collectionViewLayout:(UICollectionViewLayout *)layout registerCellClass:(Class)cellClass forCellWithReuseIdentifier:(NSString *)identifier;

/** 设置提示View 如果是空数据Block则不回调*/
-(void)setTips:(NSString *)tips AdTipsType:(GJCollectionViewTipsType)tipType handTipsTouchBlock:(tipsTouchBlock)block;

/** 删除提示View*/
-(void)removeTipsView;

@end
